package com.lagou.edu.code.dao;

import com.lagou.edu.common.pojo.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * created by kirito at 2020/7/12
 */
public interface IAuthCodeRepository extends JpaRepository<AuthCode, Integer> {

    List<AuthCode> findByEmailOrderByCreateTimeDesc(String email);
}
